﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jy123.BLL.User
{
    /// <summary>
    /// 注册反回情况
    /// </summary>
    public enum EnumRegister
    {
        /// <summary>
        /// 成功
        /// </summary>
        Succeed = 0,
        /// <summary>
        /// 注册成功，但未通过电子邮件验证
        /// </summary>
        SucceedNotMail = 4,
        /// <summary>
        /// Email已存在
        /// </summary>
        EmailRepeat = 1,
        /// <summary>
        /// 已接受邀请而注册
        /// </summary>
        RegInviteCode = 2,
        /// <summary>
        /// 无效的验证码
        /// </summary>
        InvalidCode = 3,
        /// <summary>
        /// 其他错误
        /// </summary>
        UnexpectedError = 5,
        /// <summary>
        /// 用户注册写入数据库后,可能Email未能发送成功
        /// </summary>
        EmailMayNotSend = 6

    }
    /// <summary>
    /// 用户登录状态
    /// </summary>
    public enum EnumLoginState
    {
        /// <summary>
        /// 超时或未登录
        /// </summary>
        Err_TimeOut,
        /// <summary>
        /// 管理员超时或未登陆
        /// </summary>
        Err_AdminTimeOut,
        /// <summary>
        /// 管理员被锁定
        /// </summary>
        Err_AdminLocked,
        /// <summary>
        /// 用户被锁定
        /// </summary>
        Err_Locked,
        /// <summary>
        /// 用户编号不存在
        /// </summary>
        Err_UserInexistent,
        /// <summary>
        /// 用户IP被限制
        /// </summary>
        Err_IPLimited,
        /// <summary>
        /// 用户权限不足
        /// </summary>
        Err_NoAuthority,
        /// <summary>
        /// 发生数据库异常
        /// </summary>
        Err_DbException,
        /// <summary>
        /// 登录状态正常
        /// </summary>
        Succeed,
        /// <summary>
        /// 帐号未(通过电子邮件)激活
        /// </summary>
        Err_UnActivation,
        /// <summary>
        /// 用户名或密码错误
        /// </summary>
        Err_NameOrPwdError,
        /// <summary>
        /// 非管理员
        /// </summary>
        Err_NotAdmin,
        /// <summary>
        /// 连续登录错误锁定
        /// </summary>
        Err_DurativeLogError,
        /// <summary>
        /// 会员组超期
        /// </summary>
        Err_GroupExpire
    }
    /// <summary>
    /// 会员状态
    /// </summary>
    public enum EnumUserState
    {
        /// <summary>
        /// 刚刚注册等待验证
        /// /// </summary>
        Register = 0,
        /// <summary>
        /// 用户被锁定
        /// </summary>
        Lock = 1,
        /// <summary>
        /// 状态正常，但未通过电子邮件验证
        /// </summary>
        NormalNotEmail = 2,
        /// <summary>
        /// 正常状态
        /// </summary>
        Normal = 5
    }
    /// <summary>
    /// 邮件通知设置类型
    /// </summary>
    public enum EnumEmailSet
    {
        /// <summary>
        /// 新私信
        /// </summary>
        NewLetter = 1,
        /// <summary>
        /// 好友请求
        /// </summary>
        FriendRequest = 2,
        /// <summary>
        /// 新留言
        /// </summary>
        NewWord = 3,
        /// <summary>
        /// 打招呼
        /// </summary>
        Greet = 4,
        /// <summary>
        /// 好友描述请求
        /// </summary>
        FriendDescription = 5,
        /// <summary>
        /// 接受你的邀请加入了NetSNS
        /// </summary>
        AcceptRequest = 6,
        /// <summary>
        /// 在照片中被圈
        /// </summary>
        PhotoBeQ = 7,
        /// <summary>
        /// 收到照片圈人请求
        /// </summary>
        PhotoRequest = 8,
        /// <summary>
        /// 照片新评论
        /// </summary>
        PhotoComments = 9,
        /// <summary>
        /// 你的照片评论有新回复
        /// </summary>
        PhotoResponse = 10,
        /// <summary>
        /// 群组邀请
        /// </summary>
        GroupInvite = 11,
        /// <summary>
        /// 成为群组管理员
        /// </summary>
        ChanageGroupManager = 12,
        /// <summary>
        /// 群组成员申请
        /// </summary>
        GroupJoin = 13,
        /// <summary>
        /// 主题新回复
        /// </summary>
        Response = 14,
        /// <summary>
        /// 日志新评论
        /// </summary>
        LogComments = 15,
        /// <summary>
        /// 你的日志评论有新回复
        /// </summary>
        LogResponse = 16,
        /// <summary>
        /// 班级新留言
        /// </summary>
        ClassNewWord = 17,
        /// <summary>
        /// 班级新同学
        /// </summary>
        ClassNewStudent = 18,
        /// <summary>
        /// 分享新评论
        /// </summary>
        ShareComments = 19,
        /// <summary>
        /// 你的分享评论有新回复
        /// </summary>
        ShareResponse = 20
    }
    /// <summary>
    /// 隐私类型
    /// </summary>
    public enum EnumPrivacyType
    {
        /// <summary>
        /// 空间
        /// </summary>
        Space = 0,
        /// <summary>
        /// 收藏夹
        /// </summary>
        Favourite = 1,
        /// <summary>
        /// 教育
        /// </summary>
        Educate = 2,
        /// <summary>
        /// 圈人信息
        /// </summary>
        Lasso = 3,
        /// <summary>
        /// 朋友
        /// </summary>
        Friends = 4,
        /// <summary>
        /// 忘记密码
        /// </summary>
        LeaveWord = 5,
        /// <summary>
        /// 迷你blog
        /// </summary>
        MiniBlog = 6,
        /// <summary>
        /// 共享
        /// </summary>
        Share = 7,
        /// <summary>
        /// 群组
        /// </summary>
        Group = 8,
    }
    /// <summary>
    /// 用户的隐私(公开程度)
    /// </summary>
    public enum EnumPrivacy
    {
        /// <summary>
        /// 全站可见,完全开放
        /// </summary>
        ForWholeSite = 0,
        /// <summary>
        /// 网络和好友可见
        /// </summary>
        ForNetWorkAndFriends = 1,
        /// <summary>
        /// 只有好友可见
        /// </summary>
        ForFriends = 2,
        /// <summary>
        /// 仅用户本人
        /// </summary>
        ForOwner = 3

    }
    /// <summary>
    /// 是否锁定
    /// </summary>
    public enum EnumIsLock
    {
        /// <summary>
        /// 未锁定
        /// </summary>
        UnLock = 0,
        /// <summary>
        /// 锁定
        /// </summary>
        Lock = 1
    }
}
